# coding: utf-8
from multiprocessing import Pool



def aaa(aaa):
	print(aaa)


def test(aaa):
	pool = Pool(2)
	for i in range(2):
		pool.apply_async(aaa, args=(i,))
	pool.close()
	pool.join()

# def mult_process_call_task(commands):
# 	"""多进程调用任务, 无法同时杀死全部进程id"""
# 	print('多进程调用任务, 无法同时杀死全部进程id')

# 	num = len(commands)
# 	pool = Pool(num)
# 	for command in commands:
# 		pool.apply_async(call_task, args=(command,))
# 	pool.close()
# 	pool.join()

if __name__ == '__main__':
	test(aaa)
